<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Root404
  Date: 2022/7/11
  Time: 10:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--//自定义标签库--%>
<%@ taglib prefix="f" uri="http://mycompany151.com" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
${f:showName("超哥的自定义标签库")}
<table border="4">
    <tr>
        <th>id</th>
        <th>name</th>
        <th>sex</th>
        <th>hobby</th>
        <th>操作</th>
    </tr>
    <c:forEach items="${list}" var="xjj" varStatus="status" >
    <tr  <c:if test="${status.index%2==0}"> style="background-color: red" </c:if> >
        <td>${xjj.id}</td>
        <td>${xjj.name}</td>
        <td>${xjj.sex==1?"男":"女"}</td>
        <td>${xjj.hobby}</td>
        <td><a href="${pageContext.request.contextPath}/ServleELAndJstl?op=delete&id=${xjj.id}">删除</a></td>
    </tr>
    </c:forEach>
</table>
${isdelete}
<c:forEach var="i" begin="1" end="5" step="2">${i}</c:forEach>
<script src="../js/jquery.js"></script>
<script>
$("tr:even").css("background-color","green");
</script>
</body>
</html>
